package com.xzz.feign;

import com.xzz.feignFallback.CourseFeignClientFallbackFactory;
import com.xzz.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-course", fallbackFactory = CourseFeignClientFallbackFactory.class)
public interface CourseFeignClient {

    /**
     * 查询多个课程信息，填充订单信息
     */
    @RequestMapping(value="/course/info/{courseIds}",method= RequestMethod.GET)
    public JSONResult orderInfo(@PathVariable("courseIds") String courseIds);

}